<?php

namespace app\Tools;

use yii\helpers\Url;

class UrlTool
{
    public static function createUrl($url, $params = [])
    {
        return Url::toRoute(array_merge([$url], $params));
    }
}